import request from '@/utils/request'

export function pageList(page, limit, searchObj) {
    return request({
      url: `/admin/core/userInfo/list/${page}/${limit}`,
      method: 'get',
      params: searchObj   //data是在请求体中传递参数
    })
}

export function lock(userInfo) {
  return request({
    url: '/api/core/userInfo/lock',
    method: 'post',
    data: userInfo   //data是在请求体中传递参数
  })
}

export function getuserLoginRecordTop50(userId) {
  return request({
    url: `/admin/core/userLoginRecord/listTop50/${userId}`,
    method: 'get'
  })
}